﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace rajitWorkTwo
{
    public partial class toolForm : Form
    {
        public toolForm()
        {
            InitializeComponent();
        }

        private void numericUpDown1_ValueChanged(object sender, EventArgs e)
        {
            gVar.toolPixelHeight = Convert.ToInt32(numericUpDown1.Value);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            gVar.contextSelect = 2;            
            toolForm.ActiveForm.Dispose();
        }

        private void numericUpDown3_ValueChanged(object sender, EventArgs e)
        {
            gVar.toolPixelWidth = Convert.ToInt32(numericUpDown3.Value);
        }

        private void numericUpDown2_ValueChanged(object sender, EventArgs e)
        {
            gVar.toolRealHeight = Convert.ToInt32(numericUpDown2.Value);
        }

        private void numericUpDown4_ValueChanged(object sender, EventArgs e)
        {
            gVar.toolRealWidth = Convert.ToInt32(numericUpDown4.Value);
        }

        private void numericUpDown5_ValueChanged(object sender, EventArgs e)
        {
            gVar.workLogPixelHeight = Convert.ToInt32(numericUpDown5.Value);
        }

        private void numericUpDown6_ValueChanged(object sender, EventArgs e)
        {
            gVar.workLogPixelWidth = Convert.ToInt32(numericUpDown6.Value);
        }

        private void numericUpDown7_ValueChanged(object sender, EventArgs e)
        {
            gVar.workLogRealHeight = Convert.ToInt32(numericUpDown7.Value);
        }

        private void numericUpDown8_ValueChanged(object sender, EventArgs e)
        {
            gVar.workLogRealWidth = Convert.ToInt32(numericUpDown8.Value);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            
            Environment.Exit(-1);
        }

        private void toolForm_Load(object sender, EventArgs e)
        {
            // gaand mara le tu bhenchod
        }         
    }
}
